declare @totalCount int

exec sp_getThreads
@SectionId=0,
@AuthorId=10000,
@ReplierId=0,
@ThreadStatus=0,
@ThreadReleaseStatus=0,
@OrderField=0,
@PageIndex=0,
@PageSize=20,
@TotalRecords=@totalCount output

print @totalCount